Encrypted the Password and Storied it in the Database

I wrote code that encrypts the password by salting and encrypting it so that no one knows the password, an I've made a query which will insert the emails, usernames, and passwords of registering users into the database.