added db account managing and session layer