fully completed database conversion, added paginator