module pattern, server side code, database