integrated databse into server controller