Make database to be avialable to use
Edit function to store data into database