attempt to client side generate db... no go so far :(