added outstanding start up tests for learn ep service
* re-factored outstanding sql functions for learn ep service