Update database setup to use environment variables