What's the best way to handle any database errors in this following snippet:

export async function signupService(username: string, email: string, password: string) {

const passwordHash = await bcrypt.hash(password, config.saltRounds)

await db.insert(t.users).values({ username, email, passwordHash })

}