Returns a layout with a specified name from the specified database.
If layout with the specified name is not found, NULL pointer is returned.