simple register db impl