Added read permission for database.function.* to reader and writer