added admin functions and admin page for db storage type