added new subuser db function
added endpoint for new subuser
bug fixes
mergefix