admin db functions
fixed admin db