Fixed pattern on database class