re-commit server changes since sprint 3:
added db support for more advances queries
added register module