created database setup script and use stored procedure to handle duplicate user