Information Technology (IT) systems are present in almost all fields of human activity, with emphasis on processing, storage, and handling of datasets. Automated methods to provide access to data stored in databases have been proposed mainly for tasks related to Knowledge Discovery and Data-mining (KDD). However, for this purpose, the database is used only to query data in order to find relevant patterns associated with the records. Processes modeled on IT systems should manipulate the records to modify the state of the system. Linear Genetic Programming for DataBases (LGPDB) is a tool proposed here for automatic generation of programs that can query, delete, insert, and update records on databases.