Added init_db() and add_user() functions